/*
 * @Author: HZK
 * @Date: 2020-09-15 14:41:30
 * @LastEditTime: 2020-12-23 10:13:38
 * @LastEditors: hanfengmi
 * @Description: 用户请求
 */
import { request,apiUrl } from './config'

// 获取tocken 
export async function GetTocken(params) {
  return request(apiUrl('UserService/user/index.php?r=Useri/getFWQAccessToken'),{
    method: 'POST',
    requestType: 'form',
    'Content-Type': 'application/x-www-form-urlencoded',
    data: {
      data:`${JSON.stringify(params)}`
    }
  })
}
// 登录信息
export async function GetInfo() {
  return request(apiUrl('SSOService/sso/index.php?r=Yhtinfo/YhtLoginInfo'),{
    headers:{ 'noerror':true }, // 不提示报错信息
    method: 'POST'
  })
}

// 埋点
export async function Maidian(params) {
  return request(apiUrl(`BehaviorService/behavior/index.php?${params}`),{
    header:{
      noerror:true
    },
    method: 'GET'
  })
}

